module zl_2346_5_2(codeout,indec,seg);

input [3:0] indec;
output [6:0] codeout;
output reg seg;
reg [6:0] codeout;

always@(indec)
begin
	seg=1'b0;  ////彩灯的标识设置为“未点亮”
	case(indec)
	4'd0:begin codeout = 7'b1111110; seg=1'b1; end  //x为0
	4'd1:begin codeout = 7'b0110000; seg=1'b1; end  //x为1
	4'd2:begin codeout = 7'b1101101; seg=1'b1; end  //x为2
	4'd3:begin codeout = 7'b1111001; seg=1'b1; end  //x为3
	4'd4:begin codeout = 7'b0110011; seg=1'b1; end  //x为4
	4'd5:begin codeout = 7'b1011011; seg=1'b1; end  //x为5
	4'd6:begin codeout = 7'b1011111; seg=1'b1; end  //x为6
	4'd7:begin codeout = 7'b1110000; seg=1'b1; end  //x为7
	4'd8:begin codeout = 7'b1111111; seg=1'b1; end  //x为8
	4'd9:begin codeout = 7'b1111011; seg=1'b1; end  //x为9
	endcase
end
endmodule